import { ApiProperty } from '@nestjs/swagger'
import { Column, Entity,  } from 'typeorm'
import { BaseEntity } from '../../../base.entity'

@Entity({ name: 'sys_label_template' })
export default class SysLabelTemplate extends BaseEntity {
  @Column({ type: 'varchar', length: 100, name: 'temp_name', comment: '模板名称'  })
  @ApiProperty()
  tempName: string

  @Column({ type: 'varchar', length: 255, name: 'temp_detail', comment: '表格信息' })
  @ApiProperty()
  tempDetail: string

  @Column({ type: 'text', name: 'temp_info', comment: '描述信息' })
  @ApiProperty()
  tempInfo: string

  @Column({ type: 'tinyint', default: 0, name: 'is_default', comment: '0: 非默认 1: 默认' })
  @ApiProperty()
  isDefault: 0 | 1

  @Column({ type: 'tinyint', default: 0, name: 'is_delete', comment: '0: 正常 1: 删除' })
  @ApiProperty()
  isDelete: 0 | 1
}
